package com.zz.ecommerce.togatherDeclareMgr.common.bean;

import com.zz.bundles.cache.dict.DictTag;
import com.zz.ecommerce.utils.BeanMapUtill;
import com.zz.ecommerce.utils.SqlType;
import org.apache.commons.beanutils.BeanUtils;
import org.apache.commons.beanutils.PropertyUtils;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

public class TWorksheetGoods implements Serializable {

    private static final long serialVersionUID = 237798727477503803L;

    /**
     * INDX编号
     */
    private String indx;

    /**
     * 综合申报单Indx
     */
    private String worksheetindx;

    @SqlType(inSuffix = "#")
    private String decType;

    /**
     * 报检号
     */
    private String declNoI;

    /**
     * 报关号
     */
    private String conIndxC;

    /**
     * 商品序号-报关
     */
    @Deprecated
    private String serialnoZ;
    private String serialnoC;
    private String goodsNoI;
    /**
     * 备案序号-报关
     */
    private String manualsnC;


    /**
     * 商品编号-报关
     */
    @SqlType(inTable = false)
    private String codeTC;
    private String cargotaxcoC;

    /**
     * HS编码-报检
     */
    private String hsCodeI;
    private String hsCodeZ;

    /**
     * 附加编码-报关
     */
    private String codeSC;

    /**
     * 商品名称
     */
    private String cargocnC;
    private String cargocnZ;


    /**
     * 规格型号-报关
     */
    private String modelC;

    /**
     * 成交数量
     */
    private String quantityZ;
    private String bargainsmC;
    private String qtyI;

    /**
     * 成交单位
     */
    private String unitZ;
    private String qtyUnitCodeI;
    private String qtyUnitNameI;
    private String bargainunC;

    private String unitNameZ;
    private String bargainunnameC;

    /**
     * 成交总价
     */
    private String amountZ;
    private String bargaintoC;
    private String goodsTotalValuesI;

    /**
     * 成交单价
     */
    private String priceZ;
    private String bargainpriceC;
    private String goodsUnitPriceI;
    /**
     * 币制
     */
    private String currZ;
    private String bargaincrC;
    private String currUnitI;
    private String currUnitNameI;

    private String bargaincrcnC;
    /**
     * 法定数量-报关
     */
    private String legalsmC;

    /**
     * 法定单位-报关
     */
    private String legalunC;

    private String legaluncnC;

    /**
     * 版本号-报关
     */
    private String versionnoC;

    /**
     * 征免-报关
     */
    private String levycoC;
    private String levycocnC;
    /**
     * 目的地-报关
     */
    private String nationcoC;
    private String nationnameC;
    /**
     * 第二数量-报关
     */

    private String secondsmC;

    /**
     * 第二单位-报关
     */
    private String secondunC;

    private String seconduncnC;

    /**
     * 货号-报关
     */
    private String cargonoC;
    /**
     * 生产厂家-报关
     */

    private String manufacturerC;
    /**
     * 工缴费-报关
     */
    private String processfeeC;

    /**
     * 货物名称中文-报检
     */
    private String goodsCnameI;
    /**
     * 货物名称英文-报检
     */
    private String goodsEnameI;
    /**
     * 规格-报检
     */
    private String goodsModelI;
    /**
     * 产地-报检
     */
    private String originPlaceCodeI;
    private String originPlaceNameI;
    /**
     * 原产国-报检
     */
    //    private String originCountryCodeI;
    /**
     * 重量-报检
     */
    private String weightI;
    /**
     * 重量单位-报检
     */
    private String weightUnitCodeI;
    private String weightUnitNameI;
    /**
     * 包装数量-报检
     */
    private String packNumberI;
    /**
     * 包装种类-报检
     */
    private String packTypeCodeI;
    private String packTypeNameI;
    /**
     * 用途-报检
     */
    private String purposeCodeI;
    private String purposeNameI;
    private String purposecoC;
    private String purposecocnC;

    /**
     * HS标准量-报检
     */
    private String stdQuantityI;
    /**
     * HS标准量单位-报检
     */
    private String stdUnitCodeI;
    private String stdUnitNameI;
    /**
     * 生产单位注册号-报检
     */
    private String prodRegNoI;
    /**
     * 生产批号-报检
     */
    private String prodNoI;

    /**
     * 废旧物品
     */
    private String wasteFlagI;
    private String wasteFlagNameI;

    /**
     * 法检非法检标志
     */
    private String declStatusI;

    /**
     * 产品CIQ代码
     */
    private String ciqCodeI;

    /**
     * 生产批组批号
     */
    private String combbatchNoI;

    /**
     * 验证条件:01 目录内/预包装 02 目录外/非预包装
     */
    private String conditionFlagI;

    /**
     * 类目，只作展示
     */
    @SqlType(inTable = false)
    private String categoryDisplay;

    /**
     * 进出口标志
     */
    @SqlType(inTable = false)
    private String ieFlag;

    /**
     * TDeclGoods
     *
     * @return
     */
    public TDeclGoods toTDeclGoods() {
        Map describeMap = null;
        try {
            describeMap = PropertyUtils.describe(this);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }

        Map custHeadDescribeMap = new HashMap();
        Iterator itr = describeMap.entrySet().iterator();
        while (itr.hasNext()) {
            Map.Entry entry = (Map.Entry) itr.next();
            String key = (String) entry.getKey();
            if (key.endsWith("I")) {
                custHeadDescribeMap.put(key.substring(0, key.length() - 1), entry.getValue());
            }
        }

        TDeclGoods tDeclGoods = new TDeclGoods();
        try {
            BeanUtils.populate(tDeclGoods, custHeadDescribeMap);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
        tDeclGoods.setIndx(indx);
        // 入境原产国编码是OriginCountryCode
        if ("I".equals(ieFlag)) {
            tDeclGoods.setOriginCountryCode(originPlaceCodeI);
        }
        return tDeclGoods;
    }

    /**
     * TDeclGoods
     *
     * @return
     */
    public TempDeclGoods toTempDeclGoods() {
        return BeanMapUtill.swap(toTDeclGoods(), TempDeclGoods.class);
    }


    /**
     * TCargo
     *
     * @return
     */
    public TCargo toTCargo() {
        Map describeMap = null;
        try {
            describeMap = PropertyUtils.describe(this);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
        Map custHeadDescribeMap = new HashMap();
        Iterator itr = describeMap.entrySet().iterator();
        while (itr.hasNext()) {
            Map.Entry entry = (Map.Entry) itr.next();
            String key = (String) entry.getKey();
            if (key.endsWith("C")) {
                custHeadDescribeMap.put(key.substring(0, key.length() - 1), entry.getValue());
            }
        }

        TCargo tCargo = new TCargo();
        try {
            BeanUtils.populate(tCargo, custHeadDescribeMap);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
        tCargo.setIndx(indx);
        return tCargo;
    }

    /**
     * 刷新关检的字段
     */
    public void refreshCustInspField() {
        /**
         * 成交数量
         */
        bargainsmC = quantityZ;
        qtyI = quantityZ;

        /**
         * 成交总价
         */
        bargaintoC = amountZ;
        goodsTotalValuesI = amountZ;

        /**
         * 成交单价
         */
        bargainpriceC = priceZ;
        goodsUnitPriceI = priceZ;

        if ("2".equals(decType) || "1".equals(decType)) {
            codeTC = hsCodeZ;
            cargotaxcoC = hsCodeZ;
        }

        /**
         * 货物名称
         */
        cargocnC = cargocnZ;
        goodsCnameI = cargocnZ;
    }

    public String getPurposecoC() {
        return this.purposecoC;
    }

    public void setPurposecoC(final String purposecoC) {
        this.purposecoC = purposecoC;
    }

    public String getPurposecocnC() {
        return this.purposecocnC;
    }

    public void setPurposecocnC(final String purposecocnC) {
        this.purposecocnC = purposecocnC;
    }

    public String getDeclNoI() {
        return this.declNoI;
    }

    public void setDeclNoI(final String declNoI) {
        this.declNoI = declNoI;
    }

    public String getConIndxC() {
        return this.conIndxC;
    }

    public void setConIndxC(final String conIndxC) {
        this.conIndxC = conIndxC;
    }

    public String getIndx() {
        return indx;
    }

    public void setIndx(final String indx) {
        this.indx = indx;
    }

    public String getWorksheetindx() {
        return worksheetindx;
    }

    public void setWorksheetindx(final String worksheetindx) {
        this.worksheetindx = worksheetindx;
    }

    public String getDecType() {
        return decType;
    }

    public void setDecType(final String decType) {
        this.decType = decType;
    }

    public String getSerialnoC() {
        return serialnoC;
    }

    public void setSerialnoC(final String serialnoC) {
        this.serialnoC = serialnoC;
    }

    public String getManualsnC() {
        return manualsnC;
    }

    public void setManualsnC(final String manualsnC) {
        this.manualsnC = manualsnC;
    }

    public String getCargotaxcoC() {
        return cargotaxcoC;
    }

    public void setCargotaxcoC(final String cargotaxcoC) {
        this.cargotaxcoC = cargotaxcoC;
    }

    public String getCodeSC() {
        return this.codeSC;
    }

    public void setCodeSC(final String codeSC) {
        this.codeSC = codeSC;
    }

    public String getWasteFlagI() {
        return this.wasteFlagI;
    }

    public void setWasteFlagI(final String wasteFlagI) {
        this.wasteFlagI = wasteFlagI;
    }

    public String getWasteFlagNameI() {
        return this.wasteFlagNameI;
    }

    public void setWasteFlagNameI(final String wasteFlagNameI) {
        this.wasteFlagNameI = wasteFlagNameI;
    }

    public String getCargocnC() {
        return cargocnC;
    }

    public void setCargocnC(final String cargocnC) {
        this.cargocnC = cargocnC;
    }

    public String getModelC() {
        return modelC;
    }

    public String getModelCDisplay() {
        return modelC;
    }

    public void setModelC(final String modelC) {
        this.modelC = modelC;
    }

    public String getQuantityZ() {
        return quantityZ;
    }

    public void setQuantityZ(final String quantityZ) {
        this.quantityZ = quantityZ;
    }

    public String getBargainsmC() {
        return bargainsmC;
    }

    public void setBargainsmC(final String bargainsmC) {
        this.bargainsmC = bargainsmC;
    }

    public String getQtyI() {
        return qtyI;
    }

    public void setQtyI(final String qtyI) {
        this.qtyI = qtyI;
    }

    public String getUnitZ() {
        return unitZ;
    }

    public void setUnitZ(final String unitZ) {
        this.unitZ = unitZ;
    }

    public String getQtyUnitCodeI() {
        return qtyUnitCodeI;
    }

    public void setQtyUnitCodeI(final String qtyUnitCodeI) {
        this.qtyUnitCodeI = qtyUnitCodeI;
    }

    public String getBargainunC() {
        return bargainunC;
    }

    public void setBargainunC(final String bargainunC) {
        this.bargainunC = bargainunC;
    }

    public String getUnitNameZ() {
        return unitNameZ;
    }

    public void setUnitNameZ(final String unitNameZ) {
        this.unitNameZ = unitNameZ;
    }

    public String getBargainunnameC() {
        return bargainunnameC;
    }

    public void setBargainunnameC(final String bargainunnameC) {
        this.bargainunnameC = bargainunnameC;
    }

    public String getAmountZ() {
        return amountZ;
    }

    public void setAmountZ(final String amountZ) {
        this.amountZ = amountZ;
    }

    public String getBargaintoC() {
        return bargaintoC;
    }

    public void setBargaintoC(final String bargaintoC) {
        this.bargaintoC = bargaintoC;
    }

    public String getGoodsTotalValuesI() {
        return goodsTotalValuesI;
    }

    public void setGoodsTotalValuesI(final String goodsTotalValuesI) {
        this.goodsTotalValuesI = goodsTotalValuesI;
    }

    public String getPriceZ() {
        return priceZ;
    }

    public void setPriceZ(final String priceZ) {
        this.priceZ = priceZ;
    }

    public String getBargainpriceC() {
        return bargainpriceC;
    }

    public void setBargainpriceC(final String bargainpriceC) {
        this.bargainpriceC = bargainpriceC;
    }

    public String getGoodsUnitPriceI() {
        return goodsUnitPriceI;
    }

    public void setGoodsUnitPriceI(final String goodsUnitPriceI) {
        this.goodsUnitPriceI = goodsUnitPriceI;
    }

    public String getCurrZ() {
        return currZ;
    }

    public void setCurrZ(final String currZ) {
        this.currZ = currZ;
    }

    public String getBargaincrC() {
        return bargaincrC;
    }

    public void setBargaincrC(final String bargaincrC) {
        this.bargaincrC = bargaincrC;
    }

    public String getCurrUnitI() {
        return currUnitI;
    }

    public void setCurrUnitI(final String currUnitI) {
        this.currUnitI = currUnitI;
    }

    public String getLegalsmC() {
        return legalsmC;
    }

    public void setLegalsmC(final String legalsmC) {
        this.legalsmC = legalsmC;
    }

    public String getLegalunC() {
        return legalunC;
    }

    public void setLegalunC(final String legalunC) {
        this.legalunC = legalunC;
    }

    public String getVersionnoC() {
        return versionnoC;
    }

    public void setVersionnoC(final String versionnoC) {
        this.versionnoC = versionnoC;
    }

    public String getLevycoC() {
        return levycoC;
    }

    public void setLevycoC(final String levycoC) {
        this.levycoC = levycoC;
    }

    public String getNationcoC() {
        return nationcoC;
    }

    public void setNationcoC(final String nationcoC) {
        this.nationcoC = nationcoC;
    }

    public String getNationnameC() {
        return nationnameC;
    }

    public void setNationnameC(final String nationnameC) {
        this.nationnameC = nationnameC;
    }

    public String getSecondsmC() {
        return secondsmC;
    }

    public void setSecondsmC(final String secondsmC) {
        this.secondsmC = secondsmC;
    }

    public String getSecondunC() {
        return secondunC;
    }

    public void setSecondunC(final String secondunC) {
        this.secondunC = secondunC;
    }

    public String getCargonoC() {
        return cargonoC;
    }

    public void setCargonoC(final String cargonoC) {
        this.cargonoC = cargonoC;
    }

    public String getManufacturerC() {
        return manufacturerC;
    }

    public void setManufacturerC(final String manufacturerC) {
        this.manufacturerC = manufacturerC;
    }

    public String getProcessfeeC() {
        return processfeeC;
    }

    public void setProcessfeeC(final String processfeeC) {
        this.processfeeC = processfeeC;
    }

    public String getHsCodeI() {
        return hsCodeI;
    }

    public void setHsCodeI(final String hsCodeI) {
        this.hsCodeI = hsCodeI;
    }

    public String getGoodsCnameI() {
        return goodsCnameI;
    }

    public void setGoodsCnameI(final String goodsCnameI) {
        this.goodsCnameI = goodsCnameI;
    }

    public String getGoodsEnameI() {
        return goodsEnameI;
    }

    public void setGoodsEnameI(final String goodsEnameI) {
        this.goodsEnameI = goodsEnameI;
    }

    public String getGoodsModelI() {
        return goodsModelI;
    }

    public void setGoodsModelI(final String goodsModelI) {
        this.goodsModelI = goodsModelI;
    }

    public String getOriginPlaceCodeI() {
        return originPlaceCodeI;
    }

    public void setOriginPlaceCodeI(final String originPlaceCodeI) {
        this.originPlaceCodeI = originPlaceCodeI;
    }

    public String getWeightI() {
        return weightI;
    }

    public void setWeightI(final String weightI) {
        this.weightI = weightI;
    }

    public String getWeightUnitCodeI() {
        return weightUnitCodeI;
    }

    public void setWeightUnitCodeI(final String weightUnitCodeI) {
        this.weightUnitCodeI = weightUnitCodeI;
    }

    public String getWeightUnitNameI() {
        return weightUnitNameI;
    }

    public void setWeightUnitNameI(final String weightUnitNameI) {
        this.weightUnitNameI = weightUnitNameI;
    }

    public String getPackNumberI() {
        return packNumberI;
    }

    public void setPackNumberI(final String packNumberI) {
        this.packNumberI = packNumberI;
    }

    public String getPackTypeNameI() {
        return packTypeNameI;
    }

    public void setPackTypeNameI(final String packTypeNameI) {
        this.packTypeNameI = packTypeNameI;
    }

    public String getPurposeCodeI() {
        return purposeCodeI;
    }

    public void setPurposeCodeI(final String purposeCodeI) {
        this.purposeCodeI = purposeCodeI;
    }

    public String getPurposeNameI() {
        return purposeNameI;
    }

    public void setPurposeNameI(final String purposeNameI) {
        this.purposeNameI = purposeNameI;
    }

    public String getStdQuantityI() {
        return stdQuantityI;
    }

    public void setStdQuantityI(final String stdQuantityI) {
        this.stdQuantityI = stdQuantityI;
    }

    public String getStdUnitCodeI() {
        return stdUnitCodeI;
    }

    public void setStdUnitCodeI(final String stdUnitCodeI) {
        this.stdUnitCodeI = stdUnitCodeI;
    }

    public String getStdUnitNameI() {
        return stdUnitNameI;
    }

    public void setStdUnitNameI(final String stdUnitNameI) {
        this.stdUnitNameI = stdUnitNameI;
    }

    public String getProdRegNoI() {
        return prodRegNoI;
    }

    public void setProdRegNoI(final String prodRegNoI) {
        this.prodRegNoI = prodRegNoI;
    }

    public String getProdNoI() {
        return prodNoI;
    }

    public void setProdNoI(final String prodNoI) {
        this.prodNoI = prodNoI;
    }

    public String getHsCodeZ() {
        return this.hsCodeZ;
    }

    public void setHsCodeZ(final String hsCodeZ) {
        this.hsCodeZ = hsCodeZ;
    }


    public String getQtyUnitNameI() {
        return this.qtyUnitNameI;
    }

    public void setQtyUnitNameI(final String qtyUnitNameI) {
        this.qtyUnitNameI = qtyUnitNameI;
    }

    public String getCurrUnitNameI() {
        return this.currUnitNameI;
    }

    public void setCurrUnitNameI(final String currUnitNameI) {
        this.currUnitNameI = currUnitNameI;
    }

    public String getBargaincrcnC() {
        return this.bargaincrcnC;
    }

    public void setBargaincrcnC(final String bargaincrcnC) {
        this.bargaincrcnC = bargaincrcnC;
    }

    public String getLegaluncnC() {
        return this.legaluncnC;
    }

    public void setLegaluncnC(final String legaluncnC) {
        this.legaluncnC = legaluncnC;
    }

    public String getLevycocnC() {
        return this.levycocnC;
    }

    public void setLevycocnC(final String levycocnC) {
        this.levycocnC = levycocnC;
    }

    public String getSeconduncnC() {
        return this.seconduncnC;
    }

    public void setSeconduncnC(final String seconduncnC) {
        this.seconduncnC = seconduncnC;
    }

    public String getOriginPlaceNameI() {
        return this.originPlaceNameI;
    }

    public void setOriginPlaceNameI(final String originPlaceNameI) {
        this.originPlaceNameI = originPlaceNameI;
    }

    public String getPackTypeCodeI() {
        return this.packTypeCodeI;
    }

    public void setPackTypeCodeI(final String packTypeCodeI) {
        this.packTypeCodeI = packTypeCodeI;
    }

    public String getSerialnoZ() {
        return this.serialnoZ;
    }

    public void setSerialnoZ(String serialnoZ) {
        this.serialnoZ = serialnoZ;
    }

    public String getGoodsNoI() {
        return this.goodsNoI;
    }

    public void setGoodsNoI(String goodsNoI) {
        this.goodsNoI = goodsNoI;
    }

    public String getCargocnZ() {
        return this.cargocnZ;
    }

    public void setCargocnZ(String cargocnZ) {
        this.cargocnZ = cargocnZ;
    }

    public String getDeclStatusI() {
        return this.declStatusI;
    }

    public void setDeclStatusI(String declStatusI) {
        this.declStatusI = declStatusI;
    }

    public String getCodeTC() {
        return this.codeTC;
    }

    public void setCodeTC(String codeTC) {
        this.codeTC = codeTC;
    }

    public String getCiqCodeI() {
        return ciqCodeI;
    }

    public void setCiqCodeI(String ciqCodeI) {
        this.ciqCodeI = ciqCodeI;
    }

    public String getCombbatchNoI() {
        return combbatchNoI;
    }

    public void setCombbatchNoI(String combbatchNoI) {
        this.combbatchNoI = combbatchNoI;
    }

    public String getConditionFlagI() {
        return conditionFlagI;
    }

    public void setConditionFlagI(String conditionFlagI) {
        this.conditionFlagI = conditionFlagI;
    }

    public String getCategoryDisplay() {
        return DictTag.getCargoParamVal("S_HSCODE", hsCodeI, "HS_CODE", "HS_CNAME");
    }

    public void setCategoryDisplay(String categoryDisplay) {
        this.categoryDisplay = categoryDisplay;
    }

    public String getIeFlag() {
        return ieFlag;
    }

    public void setIeFlag(String ieFlag) {
        this.ieFlag = ieFlag;
    }

    @Override
    public String toString() {
        return "TWorksheetGoods{" +
               "indx='" + indx + '\'' +
               ", worksheetindx='" + worksheetindx + '\'' +
               ", decType='" + decType + '\'' +
               ", declNoI='" + declNoI + '\'' +
               ", conIndxC='" + conIndxC + '\'' +
               ", serialnoZ='" + serialnoZ + '\'' +
               ", serialnoC='" + serialnoC + '\'' +
               ", goodsNoI='" + goodsNoI + '\'' +
               ", manualsnC='" + manualsnC + '\'' +
               ", codeTC='" + codeTC + '\'' +
               ", cargotaxcoC='" + cargotaxcoC + '\'' +
               ", hsCodeI='" + hsCodeI + '\'' +
               ", hsCodeZ='" + hsCodeZ + '\'' +
               ", codeSC='" + codeSC + '\'' +
               ", cargocnC='" + cargocnC + '\'' +
               ", cargocnZ='" + cargocnZ + '\'' +
               ", modelC='" + modelC + '\'' +
               ", quantityZ='" + quantityZ + '\'' +
               ", bargainsmC='" + bargainsmC + '\'' +
               ", qtyI='" + qtyI + '\'' +
               ", unitZ='" + unitZ + '\'' +
               ", qtyUnitCodeI='" + qtyUnitCodeI + '\'' +
               ", qtyUnitNameI='" + qtyUnitNameI + '\'' +
               ", bargainunC='" + bargainunC + '\'' +
               ", unitNameZ='" + unitNameZ + '\'' +
               ", bargainunnameC='" + bargainunnameC + '\'' +
               ", amountZ='" + amountZ + '\'' +
               ", bargaintoC='" + bargaintoC + '\'' +
               ", goodsTotalValuesI='" + goodsTotalValuesI + '\'' +
               ", priceZ='" + priceZ + '\'' +
               ", bargainpriceC='" + bargainpriceC + '\'' +
               ", goodsUnitPriceI='" + goodsUnitPriceI + '\'' +
               ", currZ='" + currZ + '\'' +
               ", bargaincrC='" + bargaincrC + '\'' +
               ", currUnitI='" + currUnitI + '\'' +
               ", currUnitNameI='" + currUnitNameI + '\'' +
               ", bargaincrcnC='" + bargaincrcnC + '\'' +
               ", legalsmC='" + legalsmC + '\'' +
               ", legalunC='" + legalunC + '\'' +
               ", legaluncnC='" + legaluncnC + '\'' +
               ", versionnoC='" + versionnoC + '\'' +
               ", levycoC='" + levycoC + '\'' +
               ", levycocnC='" + levycocnC + '\'' +
               ", nationcoC='" + nationcoC + '\'' +
               ", nationnameC='" + nationnameC + '\'' +
               ", secondsmC='" + secondsmC + '\'' +
               ", secondunC='" + secondunC + '\'' +
               ", seconduncnC='" + seconduncnC + '\'' +
               ", cargonoC='" + cargonoC + '\'' +
               ", manufacturerC='" + manufacturerC + '\'' +
               ", processfeeC='" + processfeeC + '\'' +
               ", goodsCnameI='" + goodsCnameI + '\'' +
               ", goodsEnameI='" + goodsEnameI + '\'' +
               ", goodsModelI='" + goodsModelI + '\'' +
               ", originPlaceCodeI='" + originPlaceCodeI + '\'' +
               ", originPlaceNameI='" + originPlaceNameI + '\'' +
               ", weightI='" + weightI + '\'' +
               ", weightUnitCodeI='" + weightUnitCodeI + '\'' +
               ", weightUnitNameI='" + weightUnitNameI + '\'' +
               ", packNumberI='" + packNumberI + '\'' +
               ", packTypeCodeI='" + packTypeCodeI + '\'' +
               ", packTypeNameI='" + packTypeNameI + '\'' +
               ", purposeCodeI='" + purposeCodeI + '\'' +
               ", purposeNameI='" + purposeNameI + '\'' +
               ", purposecoC='" + purposecoC + '\'' +
               ", purposecocnC='" + purposecocnC + '\'' +
               ", stdQuantityI='" + stdQuantityI + '\'' +
               ", stdUnitCodeI='" + stdUnitCodeI + '\'' +
               ", stdUnitNameI='" + stdUnitNameI + '\'' +
               ", prodRegNoI='" + prodRegNoI + '\'' +
               ", prodNoI='" + prodNoI + '\'' +
               ", wasteFlagI='" + wasteFlagI + '\'' +
               ", wasteFlagNameI='" + wasteFlagNameI + '\'' +
               ", declStatusI='" + declStatusI + '\'' +
               ", ciqCodeI='" + ciqCodeI + '\'' +
               ", combbatchNoI='" + combbatchNoI + '\'' +
               ", conditionFlagI='" + conditionFlagI + '\'' +
               ", categoryDisplay='" + categoryDisplay + '\'' +
               ", ieFlag='" + ieFlag + '\'' +
               '}';
    }
}
